﻿using SUNRPA.CONTROLS.IMPL.domain.attrubutes;
using SUNRPA.CONTROLS.IMPL.domain.flowRunningVar;
using SUNRPA.CONTROLS.IMPL.util;
using System.Collections.Concurrent;

namespace SUNRPA.CONTROLS.IMPL.domain.flowItemParam {
    [Serializable]
    [VarFieldName("LoopIndexName")]
    public class DeadLoopNParam:BaseParam {
        private string loopIndexName = "loopIndex";

        public string LoopIndexName {
            get => loopIndexName; 
            set { 
                loopIndexName = value;
                NotifyPropertyChanged("LoopIndexName");
            }
}
        public override void SetLatestVarName(ConcurrentDictionary<string, ConcurrentDictionary<string, RPAVariableDefineWrapper>> globleData) {
            this.loopIndexName = this.GetLatestName(this.loopIndexName, globleData);
        }
    }
}
